package com.ycl.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜品口味
 */
@Data
public class DishFlavor implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    // 菜品ID
    private Long dishId;
    //口味名称
    private String name;
    //口味数据list
    private String value;
    //是否删除 (逻辑删除)
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;//创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private LocalDateTime updateTime;//更新时间

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private Long createUser;//创建用户

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private Long updateUser;//更新用户

}
